package com.example.pacs.dao;

import com.example.pacs.bean.entity.Study;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface StudyMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Study record);

    int insertSelective(Study record);

    Study selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Study record);

    int updateByPrimaryKey(Study record);

    /**
     * 根据studyInstanceUid查询study是否存在
     *
     * @param studyInstanceUID study唯一标识
     * @return study
     */
    Study queryStudyByStudyInstanceUid(@Param("studyInstanceUID") String studyInstanceUID);
}